package com.mh.common.core.domain;

public enum ResultCode { //响应状态码

    SUCCESS("200","操作成功"),
    ERROR("500","操作失败") ;

    //自定义状态码
    private String code;
    //自定义描述
    private String msg;

    //有参构造器
    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    //get()-->枚举类不能设置值,所有不提供set()
    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
